<template>
	<view class="Global">
	
	
		<bgImage></bgImage>
	
		<MyNav :title="title" bgColor="" :backIcon="isback" ></MyNav>
	
	
			<view class="content">
				
				<image class="ContentImg" src="../../../static/logo.png" mode="scaleToFill"></image>
				
				
				<view class="contentTop" @click="listItemClick()">
					<text class="contentTopText">设备名称</text>
					<view class="contentTopRight">
						<text class="contentTopRightText">门禁机123</text>
						<uni-icons  class="contentOnTimeRightIcon" type="right" size="14"></uni-icons>
					</view>
				</view>
				
				
				<view class="contentTop">
					<text class="contentTopText">设备SN</text>
					<view class="contentTopRight">
						<text class="contentTopRightText">门禁机123门禁机1</text>
						<image class="contentTopRightImg" src="/static/clock/fuzhi.png" mode=""></image>
					</view>
				</view>
				
				
				<view class="contentTop">
					<text class="contentTopText">设备网络</text>
					<view class="contentTopRight">
						<image src="../../../static/clock/zaixian.png" class="contentTopRightImgOnLine" mode="scaleToFill"></image>
						<text class="contentTopRightText">在线</text>
					<uni-icons  class="contentOnTimeRightIcon" type="right" size="14"></uni-icons>
					</view>
				</view>
				
				
			</view>
			
			
			<text class="deleteContent">删除设备</text>
			
			
			
			<!-- 点击列表弹出-->
			<uni-popup ref="popupBag" type="bottom">
				<view class="bagDetail">
					<text class="bagDetailUpadte" >设备名称</text>
					
					
					<input type="text" value="111" class="bagDetailInput" />
					
					<text class="bagDetailText">确定</text>
					
					
				</view>
			</uni-popup>
			
			
		
	</view>
</template>

<script>
	import MyNav from '@/components/customnavbar.vue'
	
	import bgImage from '@/components/backgroundImage.vue'
	
	
	export default {
		components: {
			MyNav,
			bgImage
	
	
		},
		data() {
			return {
				title: '设备信息',
				isback: true,
				
			}
		},
		methods: {
			
			// 列表点击事件
			listItemClick() {
			
				this.open()
			},
			// 打开弹框
			open() {
				// console.log('点了');
				this.$refs.popupBag.open('bottom')
				
			
			
			},
			// 关闭弹框
			close() {
				this.$refs.popupBag.close()
			},
			
		}
	}
</script>

<style>
	.bagDetailText{
		
		width: 690rpx;
		height: 100rpx;
		background: linear-gradient(90deg, #45A8FF, #0AE1C6);
		border-radius: 20rpx;
		
		display: flex;
		justify-content: center;
		align-items: center;
		
		font-family: HarmonyOS Sans SC;
		font-weight: 400;
		font-size: 28rpx;
		color: #FFFFFF;
		line-height: 30rpx;
		margin-top: 30rpx;
	}
	.bagDetailInput{
		
		width: 690rpx;
		height: 120rpx;
		background: #F5F7F9;
		border-radius: 30rpx;
		
		
		font-family: HarmonyOS Sans SC;
		font-weight: 400;
		font-size: 28rpx;
		color: #666666;
		line-height: 120rpx;
		
		display: flex;
		align-items: center;
		justify-content: flex-start;
		padding-left: 30rpx;
	}
	
	.bagDetailDelete {
		width: 100%;
		height: 120rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		color: red;
	
	}
	
	.bagDetailUpadte {
		width: 100%;
		height: 120rpx;
		display: flex;
		align-items: center;
		justify-content: center;
	
		/* border-radius: 20rpx 20rpx 0 0; */
		/* background-color: white; */
	}
	
	.bagDetail {
		width: 750rpx;
		height: 413rpx;
		background: #FFFFFF;
		border-radius: 55rpx 55rpx 0rpx 0rpx;
	
	
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	
	
	}
	
	
	.deleteContent{
		
		width: 690rpx;
		height: 100rpx;
		background: linear-gradient(90deg, #45A8FF, #0AE1C6);
		border-radius: 20rpx;
		
		margin-top: 30rpx;
		
		display: flex;
		justify-content: center;
		align-items: center;
		
		font-family: HarmonyOS Sans SC;
		font-weight: bold;
		font-size: 28rpx;
		color: #FFFFFF;
		line-height: 30rpx;
	}
	.contentTopRightImgOnLine{
		width: 30rpx;
		height: 30rpx;
		margin-right: 30rpx;
	}
	.contentTopRightImg{
		width: 30rpx;
		height: 30rpx;
		margin-right: 30rpx;
		
	}
	.contentTopRightText{
		font-family: HarmonyOS Sans SC;
		font-weight: 400;
		font-size: 28rpx;
		color: #666666;
		line-height: 120rpx;
		
		margin-right: 30rpx;
		
		max-width: 200rpx;
		 overflow: hidden;
		 white-space: nowrap;
		 text-overflow: ellipsis;
	}
	.contentTopRight{
		display: flex;
		justify-content: center;
		align-items: center;
	}
	
	.contentTopText{
		font-family: HarmonyOS Sans SC;
		font-weight: bold;
		font-size: 28rpx;
		color: #333333;
		line-height: 120rpx;
		
		margin-left: 30rpx;
	}
	
	.contentTop{
		display: flex;
		height: 120rpx;
		width: 100%;
		justify-content: space-between;
		align-items: center;
		
		border-bottom: #EEEEEE solid 1rpx;
	}
	
	.contentOnTimeRightIcon{
		margin-right: 30rpx;
		display: flex;
		
		align-items: center;
	}
	.ContentImg{
		
		width: 80rpx;
		height: 172rpx;
		display: flex;
		justify-content: center;
		margin-top: 50rpx;
		margin-bottom: 60rpx;
	}
.content{
	width: 690rpx;
	height: 600rpx;
	background: #FFFFFF;
	border-radius: 30rpx;
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	margin-top: 30rpx;
}
</style>
